package com.business.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.business.AccountService;
import com.dao.AccountDao;
import com.domain.Account;

@Service
@Transactional
public class AccountServiceImpl implements AccountService {
	@Autowired
	private AccountDao accountDao;

	public List<Account> getListAccount(int begin, int limit) {
		return accountDao.getListAccount(begin, limit);
	}

	public Account findAccountById(int id) {
		// TODO Auto-generated method stub
		return null;
	}

	public Account findAccountByUsername(String username) {
		// TODO Auto-generated method stub
		return null;
	}

	public Account findAccountByEmail(String email) {
		// TODO Auto-generated method stub
		return null;
	}

	public void deleteAccount(int id) {
		accountDao.deleteAccount(id);
	}

	public void updateAccount(Account acc) {
		accountDao.updateAccount(acc);
	}

	public void createAccount(Account acc) {
		accountDao.createAccount(acc);
	}

	public int getTotalAccount() {
		return accountDao.getTotalAccount();
	}

}
